#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../lib/auth'
require 'win32/clipboard'
include Win32

::SECRET = 
  begin
    YAML.load_file(File.dirname(__FILE__) + '/../../config/secret.yml')
  rescue Exception => e
    raise StandardError, "config/secret.yml could not be loaded."
  end

Clipboard.set_data(Auth.password)
puts 'Password copied to clipboard.'
